let spurl = 'http://localhost:8080/api/v1';

function myAjax(type, url, data, call) {
  $.ajax({
    type: type,
    url: spurl + url,
    data: data,
    success: function (resData) {
      call(resData);
    }
  });
}